<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateReSearchTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('re_search', function (Blueprint $table) {
            $table->increments('search_id');
            $table->integer('user_id')->comment('搜索用户');
            $table->string('search_connect')->comment('搜索内容');
            $table->integer('serch_num')->comment('搜索次数');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('re_search');
    }
}
